<?php
    require_once($_SERVER['DOCUMENT_ROOT'] . '/ukkepuk/source/php/classes/service/KidService.php');
    require_once($_SERVER['DOCUMENT_ROOT'] . '/ukkepuk/source/php/classes/model/Kid.php');
    $kidService = new KidService();

?>


<div id="kidthumbs">
    
    <?php foreach ($kidService->readAllKidsSubscribed() as $kid) { ?>
    <?php echo "<div class=\"kidthumbtile\" id=\"kid_".$kid->getId()."\">"; ?>
        <div class="thumbimg">
            <?php echo "<image src=\"" . '/ukkepuk/webcontent/images/kids/'.$kid->getProfileImage() . "\" height=\"100px\">" ?>
        </div>
        <div class="thumbname">
            <?php echo $kid->getFirstName(); ?>
        </div>
    </div>
    
    <?php } ?>
    
</div>